﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="index.aspx.cs" Inherits="Joyintech.Admin.inpiao365.general.system.log.index" %>

<%@ Register Src="~/checkRight.ascx" TagName="checkRight" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>日志管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="position">
        <span>日志管理</span>
    </div>
    <div class="searcher">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="fontR">
                    日志关键字:<jui:HFTextBox ID="txtLogRemark" runat="server"></jui:HFTextBox>
                    &nbsp;
                    <jui:HFLinkButton runat="server" ID="btnSearch" CssClass="btn" OnClick="btnSearch_Click"><span><label class="search" for="btnSearch">查询</label></span></jui:HFLinkButton>
                </td>
            </tr>
        </table>
    </div>
    <div class="lister">
        <table border="0" cellpadding="0" cellspacing="1" width="100%" class="datatable">
            <tr class="head">
                <td style="width: 20%" class="fontC">
                    操作用户
                </td>
                <td style="width: 20%" class="fontC">
                    操作人员姓名
                </td>
                <td style="width: 10%" class="fontC">
                    操作时间
                </td>
                <td style="width: 10%" class="fontC">
                    操作IP
                </td>
                <td style="width: 10%" class="fontC">
                    操作类别
                </td>
                <td style="width: 10%" class="fontC">
                    操作内容
                </td>
                <td style="width: 10%" class="fontC">
                    操作
                </td>
            </tr>
            <asp:Repeater ID="RepeaterList" runat="server">
                <ItemTemplate>
                    <tr class="row1" onmouseover="a=this.className;this.className='rowfocus';" onmouseout="this.className=a;a='';">
                        <td style="width: 20%" class="fontC">
                            <%# Eval("UserId")%>
                        </td>
                        <td style="width: 10%">
                            <%# Eval("UserTrueName")%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# Eval("UserDateTime")%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# Eval("IP")%>
                        </td>
                        <td style="width: 10%" class="fontL">
                            <%# Eval("LogType")%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# Eval("LogRemark").ToString()%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# "<a target='_delete' href='delete.aspx?log_id=" + Eval("logId") + "' onclick=\"return confirm('删除后无法恢复,确定要删除吗')\">删除</a>"%>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="row2" onmouseover="a=this.className;this.className='rowfocus';" onmouseout="this.className=a;a='';">
                        <td style="width: 20%" class="fontC">
                            <%# Eval("UserId")%>
                        </td>
                        <td style="width: 10%">
                            <%# Eval("UserTrueName")%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# Eval("UserDateTime")%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# Eval("IP")%>
                        </td>
                        <td style="width: 10%" class="fontL">
                            <%# Eval("LogType")%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# Eval("LogRemark").ToString()%>
                        </td>
                        <td style="width: 10%" class="fontC">
                            <%# "<a target='_delete' href='delete.aspx?log_id=" + Eval("logId") + "' onclick=\"return confirm('删除后无法恢复,确定要删除吗')\">删除</a>"%>
                        </td>
                    </tr>
                </AlternatingItemTemplate>
            </asp:Repeater>
            <%if (RepeaterList.Items.Count == 0)
              {%>
            <tr class="row1">
                <td colspan="7" align="center">
                    无符合条件的数据
                </td>
            </tr>
            <%}%>
            <tr class="pager">
                <td colspan="7">
                    <jui:SqlPager ID="SqlPager1" ControlToPaginate="RepeaterList" ItemsPerPage="10" PagingMode="NonCached"
                        runat="server" />
                </td>
            </tr>
        </table>
    </div>
    <iframe name="_delete" id="_delete" width="0" height="0"></iframe>
    <uc1:checkRight ID="checkRight1" runat="server" />
    
    </form>
</body>
</html>